{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}

{/* Import Js,Css */}	
	<js href="__PUBLIC__/Js/listTable.js"/>	
	<css href="__PUBLIC__/Css/admin/common.css"/>
	
	<css href="__PUBLIC__/Css/jquery-ui.css" />
	<js href="__PUBLIC__/Js/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/Js/core/plugins.js"/>
{/* Import Js,Css */}

<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->


	<SCRIPT type="text/javascript">
		<!--
		var cat_setting = {
			view: {
				showLine: true,
				showIcon: showIconForTree
			},
			data: {
				simpleData: {
					enable: true
				}
			}
		};
		
		$(document).ready(function(){
			$.ajax({
				url:'__URL__/ajaxCat',
				data:{},
				dataType:'json',
				type:'post',
				success:function(msg){
					//alert(msg.data);
					///
					var cat_zNodes =[
						{ id:1, pId:0, name:"父节点1 - 展开", open:true},
						{ id:11, pId:1, name:"父节点11 - 折叠"},
						
						{ id:111211, pId:11111, name:"叶子节点111111"},
						{ id:111, pId:11, name:"叶子节点111"},
						{ id:1111, pId:111, name:"叶子节点1111"},
						{ id:11111, pId:1111, name:"叶子节点11111"},
					];	

					cat_zNodes = msg;					
					$.fn.zTree.init($("#treeDemo1"), cat_setting, cat_zNodes);
				}
			});
		
		
		});
		
		
		
		// 不显示图标
		function showIconForTree(treeId, treeNode) {
			return !treeNode.isParent;
		};
		
		
		//-->
	</SCRIPT>

	
<ul id="treeDemo1" class="ztree"></ul>
